package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("events_record")
public class EventsRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private Integer userId;
	private Integer companyId;
	private Integer typeChildId;
	private Integer sectionId;
	private String content;
	private Integer safeDepartId;
	private Integer safeUserId;
	private Integer safeSysUserId;
	private String safeHandleResult;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date safeHandleTime;
	@TableField(exist = false)
	private String safeHandleTimeStr;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date safeSubmitTime;
	@TableField(exist = false)
	private String safeSubmitTimeStr;
	private Integer safeSubmitSysUserId;
	private Integer safeSubmitUserId;
	private String safeSubmitResult;
	private Integer handleDepartId;
	private Integer handleUserId;
	private Integer handleSysUserId;
	private String deptHandleContent;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date handleDeptTime;
	@TableField(exist = false)
	private String handleDeptTimeStr;
	private Integer state;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	@TableField(exist = false)
	private String createTimeStr;
	@TableField(exist = false)
	private String sectionContent;
	@TableField(exist = false)
	private String typeChildName;
	//去掉会变成小写
	@JsonProperty("uName")
	@TableField(exist = false)
	private String uName;
	@TableField(exist = false)
	private String safeUserName;
	@TableField(exist = false)
	private String handleUserName;
	@TableField(exist = false)
	private String safeSubmitUserName;
	@TableField(exist = false)
	private String safeDepartName;
	@TableField(exist = false)
	private String handleDepartName;
}
